package com.test.callable;

import lombok.extern.slf4j.Slf4j;

/**
 * Runnable使用demo
 *
 * @author wangjie
 * @version V1.0
 * @date 2019/12/25
 */
@Slf4j
public class RunnableDemo {

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableResource());
        thread.start();
    }
}

/**
 * 线程
 */
@Slf4j
class RunnableResource  implements Runnable{

    @Override
    public void run() {
        log.info("【这是个Runable使用demo】");
    }
}